<php>if(!empty($config['type'])){</php>
<div class="login">
    <div class="legend">第三方账号登录</div>
    <div style="text-align:center;padding-top:25px;">
        <a class="btn btn-success btn-block" href="<php>if(in_array('Qq',$config['type'])){ echo addons_url('SyncLogin://Base/login',array('type'=>'qq'));}</php>">用QQ账号登录</a>
        <a class="btn btn-danger btn-block" href="<php>if(in_array('Sina',$config['type'])){ echo addons_url('SyncLogin://Base/login',array('type'=>'sina'));}</php>">用微博账号登录</a>
       </div>
</div>
<php>}</php>